package com.zenithmind.chat.pojo.query;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zenithmind.chat.pojo.entity.AiChat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * AI对话分页查询参数
 */
@Data
@Schema(description = "AI对话分页查询参数")
public class AiChatPageQuery {

    @Schema(description = "标题")
    private String title;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "模型ID")
    private String modelId;

    @Schema(description = "模型类型")
    private Integer modelType;

    @Schema(description = "对话状态 (0-禁用，1-启用)")
    private Integer status;

    @Schema(description = "开始时间")
    private String beginTime;

    @Schema(description = "结束时间")
    private String endTime;

    @Schema(description = "页码")
    private Long current = 1L;

    @Schema(description = "每页数量")
    private Long size = 10L;

    /**
     * 转换为Page对象
     */
    public Page<AiChat> toPage() {
        return new Page<>(this.current, this.size);
    }
} 